package cn.glow.readingcloud.homepage.service;

import cn.glow.readingcloud.common.pojo.IndexBooklist;
import cn.glow.readingcloud.homepage.pojo.BookList;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @Author Glow
 * @Date 2023-04-17 22:29:58
 * @Description 主页书单服务实现
 * @Version 1.0
 */
public interface IndexBooklistService extends IService<IndexBooklist> {
    /**
     * 获取书单VO
     * @param booklistId
     * @param clientRandomNumber
     * @return
     */
BookList getIndexBooklistVO(Integer booklistId, Integer clientRandomNumber);

    /**
     * 查询书单信息
     * @param booklistId
     * @return
     */
    IndexBooklist getIndexBooklistById(Integer booklistId);

    /**
     * 获取随机榜单VO
     * @param booklist
     * @param clientRandomNumber
     * @return
     */
   BookList getRandomIndexBooklistVO(IndexBooklist booklist, Integer clientRandomNumber);

}
